package game;

import java.awt.Graphics2D;

import gamestate.*;
import user.User;

public class Game 
{
	private StateStack ss;
	private User user;
	
	public Game()
	{
		ss = new StateStack();
		user = new User();
		
		ss.push( new InGame( ss, user ) );
	}
	
	public void update( double duration )
	{
		ss.update( duration );
	}
	
	public void render( Graphics2D g )
	{
		ss.render( g );
	}
	
	public User getUser()
	{
		return user;
	}
}
